package org.orange.mybatis.simulate.mybatis.spring.itxs;

import org.orange.mybatis.simulate.mybatis.spring.itxs.config.AppConfig;
import org.orange.mybatis.simulate.mybatis.spring.itxs.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MybatisApplication {


    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        UserService userService = applicationContext.getBean("userService", UserService.class);
        userService.getUser();
    }
}